const KoaRouter = require('@koa/router')
const {
    create
} = require('../controller/file.controller')
const uploadImage = require('../middleware/file.middleware')
const { verifyAuth } = require('../middleware/login.middleware')

const fileRouter = new KoaRouter({
    prefix: '/file'
})

fileRouter.post('/avatar', verifyAuth, uploadImage, create)

module.exports = fileRouter